package com.example.picturestorage.aTest;

import lombok.SneakyThrows;

public class WindowService implements Runnable{

    private Customer customer;

    public WindowService(Customer customer){
        this.customer=customer;
    }

    @SneakyThrows
    @Override
    public void run() {
        Thread.sleep(customer.getTime());
    }
}
